<!DOCTYPE html>   
<html lang="en">   
<head>   
<meta charset="utf-8">   
<title>录入</title>   
<meta name="description" content="Twitter Bootstrap">  
<link href="{{ static_url('css/bootstrap.spacelab.min.css') }}" rel="stylesheet">   
</head>  
<body>  
<section id="forms">
  <div class="page-header">
    <h1>录入</h1>
  </div>
  <div class="row">
    <div class="span11 offset1">
      <form class="form-horizontal well" action="{{ reverse_url('add_base_item') }}" method="post">
      	{{ xsrf_form_html() }}
        <fieldset>
          <legend>基础数据录入</legend>
          	<div class="control-group">
            <label class="control-label" for="categoryId">类别</label>
            <div class="controls">
              <select id="categoryId" name="categoryId">
              	{% for category in data %}
                	<option value="{{ category.id }}">{{ category.category_name }}</option>
                	{% end %}
              </select>
            </div>
            </div>
            <div class="control-group">
            <label class="control-label" for="itemKey">基础数据编码</label>
            <div class="controls">
              <input type="text" class="input-xlarge" id="itemKey" name="itemKey">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="itemValue">基础数据值</label>
            <div class="controls">
              <input type="text" class="input-xlarge" id="itemValue" name="itemValue">
            </div>
          </div>
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <button type="reset" class="btn">取消</button>
          </div>
        </fieldset>
      </form>
    </div>
  </div>
</section>
</body>  
</html>